package cn.piesat.vo.resource;

import javax.validation.constraints.NotBlank;

/**
 * 添加资源信息参数类
 *
 * @author xhl
 */
public class AddResourceVO {

    /**
     * 资源名称
     */
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 资源信息（按钮：按钮标识；接口：请求地址）
     */
    @NotBlank(message = "资源信息不能为空")
    private String resource;

    /**
     * 资源类型（按钮：button；接口：interface）
     */
    @NotBlank(message = "资源类型不能为空")
    private String type;

    /**
     * 菜单ID
     */
    private String menuId;

    @Override
    public String toString() {
        return "AddResourceVO{" +
                "name='" + name + '\'' +
                ", resource='" + resource + '\'' +
                ", type='" + type + '\'' +
                ", menuId='" + menuId + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }
}
